/* Copyright (c) 2025 Beijing Semidrive Technology Corporation
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * @file  Ea_Cfg.h
 * @brief Semidrive. AUTOSAR 4.3.1 MCAL EEPROM Abstraction
 * @date 2025-03-25 19:03:22
 */

#ifndef EA_CFG_H
#define EA_CFG_H

#ifdef __cplusplus
extern "C"{
#endif

#include "Ea_Types.h"

/* Ea Error check */
#define EA_DEV_ERROR_DETECT    (STD_OFF)

/* Ea API definition */
#define EA_VERSION_INFO_API    (STD_ON)

#define EA_SETMODE_API_SUPPORTED    (STD_ON)

#define EA_POLLING_MODE    (STD_ON)

/* Ea Virtual page size */
#define EA_VIRTUAL_PAGE_SIZE                16U

/* Ea Dev cache size */
#define EA_DEV_CACHE_SIZE                   256U


/* Ea NVM END callback API */
#define EA_NVM_JOB_END_NOTIFICATION_DECL
#define EA_NVM_JOB_END_NOTIFICATION

/* Ea NVM ERROR callback API */
#define EA_NVM_JOB_ERROR_NOTIFICATION_DECL
#define EA_NVM_JOB_ERROR_NOTIFICATION

/* Ea CFG Number Info */
#define EA_DEV_NUMBER                   1U
#define EA_BLOCKS_CFG_NUMBER            18U

#define EA_BLOCKS_FULL_SIZE                14508U
#define EA_BLOCKS_SIZE_MAX                4257U

/* Ea CFG Index Info */
#define EaBlockConfiguration_0     1U
#define EaBlockConfiguration_1     2U
#define EaBlockConfiguration_2     3U
#define EaBlockConfiguration_3     4U
#define EaBlockConfiguration_4     5U
#define EaBlockConfiguration_5     6U
#define EaBlockConfiguration_6     7U
#define EaBlockConfiguration_7     8U
#define EaBlockConfiguration_8     9U
#define EaBlockConfiguration_9     10U
#define EaBlockConfiguration_10     11U
#define EaBlockConfiguration_11     12U
#define EaBlockConfiguration_12     13U
#define EaBlockConfiguration_13     14U
#define EaBlockConfiguration_14     15U
#define EaBlockConfiguration_15     16U
#define EaBlockConfiguration_16     17U
#define EaBlockConfiguration_17     18U

/* Ea CFG structure */
extern const Ea_DeviceType Ea_DeviceConfig[ EA_DEV_NUMBER ];
extern const Ea_BlockConfigType Ea_BlockConfig[ EA_BLOCKS_CFG_NUMBER ];

#ifdef __cplusplus
}
#endif

#endif /* EA_CFG_H */
/** @} */
